package com.sooth.system.dict.mapper;

import com.dream.system.annotation.Mapper;
import com.dream.system.annotation.Param;
import com.dream.system.annotation.Sql;
import com.sooth.common.dream.annotation.IgnoreTenant;
import com.sooth.system.dict.view.SysDictDataVo;

import java.util.List;

@Mapper
public interface SysDictDataMapper {
    @IgnoreTenant
    @Sql("""
             SELECT
              @*()
             FROM
              sys_dict_data
             WHERE
              dict_type =:dictType
              AND tenant_id =:tenantId
            """)
    List<SysDictDataVo> list(@Param("dictType") String dictType, @Param("tenantId") String tenantId);
}
